export const getters = {
  getNotifications ($state) {
    return Object.values($state.records).sort((n1, n2) => n2.createdAt > n1.createdAt ? 1 : -1)
  },
  getUIFlags ($state) {
    return $state.uiFlags
  },
  getNotification: $state => id => {
    const notification = $state.records[id]
    return notification || {}
  },
  getMeta: $state => {
    return $state.meta
  },
}
